package com.lyy.common.config;

import com.lyy.common.utils.Constants;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ConstantConfig {

    /**
     * 图片浏览地址
     */
    @Value("${basePath}")
    public String address;

    @Bean
    public int initStatic() {
        /** 图片浏览地址 */
        Constants.basePath = address;
        return 0;
    }


}